home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
os2
/
srefv112.zip
/
SREFPRC1.ZIP
/
MSPACE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-05-09
|
1KB
|
48 lines
/* */
parse upper arg isdel isfil
foo=rxfuncquery('sysloadfuncs')
if foo=1 then do
say 'Loading REXXUtil library '
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
end
foo=rxfuncquery('rexxlibregister')
if foo=1 then do
say ' loading REXXLIB '
call rxfuncadd 'rexxlibregister','rexxlib', 'rexxlibregister'
call rexxlibregister
end
if isdel="" then do
a=sysfiledelete('wow.rxl')
foo=macrosave('wow.rxl')
if foo=2 then do
say " mspace is empty "
exit
end
end
if abbrev(translate(isdel),'D')=1 then do
foo=macroclear()
say " clearing macrospace " foo
end
if abbrev(isdel,"L")=1 then do
foo=macroload(isfil)
say " Loading macrolib " isarg " = " foo
end
if isdel="?" | abbrev(isdel,'H')=1 then do
say " MSPACE (no arguments) : show contents of macrospace "
say " MSPACE D : delete all procedures in macrospace (careful, it's global "
say " MSPACE L : Load a macrospace library "
end
exit